package org.cytoscape.cytargetlinker.internal;

import java.awt.event.ActionEvent;

import org.cytoscape.application.swing.AbstractCyAction;
import org.cytoscape.util.swing.OpenBrowser;

public class CTLHelpAction extends AbstractCyAction {

	private OpenBrowser openBrowser;
	private String helpDeskURL = "http://code.google.com/p/cytargetlinker/";
	
	public CTLHelpAction(String name, OpenBrowser openBrowser) {
		super(name);
		this.openBrowser = openBrowser;
		setPreferredMenu("Apps.CyTargetLinker");
	}

	@Override
	public void actionPerformed(ActionEvent event) {
		openBrowser.openURL(helpDeskURL);
	}

}
